<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*"
	pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp"%>
<%@include file="../common/jscss.jsp"%>
<%@include file="../common/selfCss.jsp"%>
<script language="javascript">
<!--

	//更新频道
	function updateChannel() {
		var name = $("#name").val();
		var mark = $.trim($("#mark").val());
		$("#updateChannel").attr("onclick","");
		$.post("/misc/cms/updateChannel.htm", {
			id : "${channel.id}",
			name : name,
			mark : mark
		}, function(data) {
			if (data == "success") {
				parent.$.ligerDialog.success("更新成功！");
				parent.dialog_ae.close();
			}else{
				$.ligerDialog.warn("系统有点抽经，请稍候重试！");
			}
			$("#updateChannel").attr("onclick","updateChannel()");
		});
	}
//-->
</script>

<table width="100%" class="def_t">
	<tr>
		<td>频道ID：</td>
		<td><input type="text" id="mark" value="${channel.mark }" disabled="disabled" style="width: 400px;"></td>
	</tr>
	<tr>
		<td>名称：</td>
		<td><input type="text" id="name" value="${channel.name }" style="width: 400px;">
		</td>
	</tr>
	<tr>
		<td colspan="2" align="center"><button type="button" id="updateChannel" onclick="updateChannel()">保存</button>
		</td>
	</tr>
</table>


